package com.daJiao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.daJiao.entity.SysRoleMenu;
import com.daJiao.mapper.SysRoleMenuMapper;
import com.daJiao.service.SysRoleMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu>  implements SysRoleMenuService {

    @Resource
    private SysRoleMenuMapper sysRoleMenuMapper;

    @Override
    public int batchDeleteByRoleId(String roleId) {
        return sysRoleMenuMapper.batchDeleteByRoleId(roleId);
    }

    @Override
    public List<SysRoleMenu> getMenuByRoleIds(List<String> roleIds) {
        return sysRoleMenuMapper.getMenuByRoleIds(roleIds);
    }
}
